<back-to-top class="back_top" title="返回顶部"></back-to-top>
<div class="container">
  <div class="row order">
    <div class="col-md-12"><h3>核对订单信息 |</h3></div>
    <div class="col-md-12">
      <table class="order-table">
        <tr><td>选择收货地址</td>
            <td class="t-td-1 t-addr" colspan="3">
              <input ng-click="setaddr(0)" type="radio" name="addr" ng-checked="vo.index==0"><span>默认地址1</span>
              <input ng-click="setaddr(1)" type="radio" name="addr" ng-checked="vo.index==1"><span>默认地址2</span>
              <input ng-click="setaddr(2)" type="radio" name="addr" ng-checked="vo.index==2"><span>默认地址3</span>
            </td>
        </tr>
        <tr><td>收件人姓名</td>
            <td class="t-addr" colspan="3"><input class="t-input" type="text" ng-model="addr.name"></td>
        </tr>
        <tr><td>收件人联系电话</td>
            <td class="t-addr" colspan="3"><input class="t-input" type="text" ng-model="addr.mobile"></td>
        </tr>
        <tr><td>收件人地址</td>
            <td class="t-addr" colspan="3"><input class="t-input" type="text" ng-model="addr.addr"></td>
        </tr>
        <tr><td>收件人邮编</td>
            <td class="t-addr" colspan="2"><input class="t-input" type="text" ng-model="addr.zip"></td>
            <td>
              <div class="btn-group">
                <button type="button" 
                ng-click="saveAddr()"
                class="btn btn-success">{{vo.btext}}</button>
                <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  <span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                  <li><a href="" ng-click="saddr('保存到地址一', 0)">保存到地址一</a></li>
                  <li><a href="" ng-click="saddr('保存到地址二', 1)">保存到地址二</a></li>
                  <li><a href="" ng-click="saddr('保存到地址三', 2)">保存到地址三</a></li>
                </ul>
              </div>
            </td>
        </tr>
        <tr>
          <td>商品名称</td>
          <td>商品规格</td>
          <td>商品数量</td>
          <td>商品价格</td>
        </tr>
        <tr class="t-color">
          <td>{{detail.name}}</td>
          <td>{{detail.size=='1'?detail.size:'无'}}</td>
          <td>{{vo.number}}</td>
          <td><label>￥{{detail.price}}</label></td>
        </tr>     
        <tr>
          <td colspan="3"></td>
          <td>运费<label>￥{{detail.yprice}}</label></td>
        </tr>
        <tr>
          <td colspan="3"></td>
          <td>应付总额：<label>￥{{detail.yprice + detail.price*vo.number}}</label></td>
        </tr> 
        <tr style="border:0;text-align: right;">
          <td colspan="3"></td>
          <td><br><button ng-click="buy()" class="btn btn-info btn-full">确认下单</button></td>
        </tr>    
      </table>
    </div>
  </div>
</div>
<style> 
  .order-table tr td:first-child{
    text-align: right;
  }
  .t-color{
    color: #666;
  }
  .t-addr{
    text-align: left;
    padding-left: 40px;
    color: #666;
  }
  .order-left{
    font-weight: bold;
    font-size:22px;
  }
  .order-left span{
    color: #f44336;
  }
  .t-input{
    margin-left: 20px;
    height: 90%;
    width: 350px;
  }
  .t-td-1{
    font-weight: 200;
  }
  .t-td-1 span{
    padding-right: 15px;
  }
  label{
    color: #e4393c;
    font-size: 18px;
  }
</style>